tboot: fix tboot memory mapping for 32b
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 22 Sep 2009 07:36:40 +0000 (08:36 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 22 Sep 2009 07:36:40 +0000 (08:36 +0100)
commit905c0138d3df790e693ae13b0384274b9edaf492
tree9a23a5d7d4837d216f467836289c83134b0e5130
parent93515c30e8f547beac5d9493e0b8532a2376ed50
tboot: fix tboot memory mapping for 32b

This patch used fixmap to get TXT heap base/size and SINIT base/size
from TXT pub config registers (whose address starts from 0xfed20000),
and get DMAR table copy from TXT heap (whose address may start from
0x7d520000) for tboot, instead of using map_pages_to_xen(), which will
cause panic on x86_32.

Signed-off-by: Shane Wang <shane.wang@intel.com>
xen/arch/x86/tboot.c
xen/include/asm-x86/fixmap.h